package structural.adapter.custom;

import structural.adapter.custom.spring.ModelAndView;
import structural.adapter.custom.spring.SpringController;
import structural.adapter.custom.struts.PersonAction;
import structural.adapter.custom.struts.StrutsAction;

/**
 * 类适配器
 */
public class ClassAdapter extends PersonAction implements SpringController {


    public ClassAdapter(){
    }

    @Override
    public ModelAndView add(Entity entity) {
        setEntity(entity);
        String page = super.to_add();
        return new ModelAndView(page);
    }

}
